home *** CD-ROM | disk | FTP | other *** search
- TITLE
-
- xrf Cross-Reference Lister for C Programs
-
- AUTHOR
-
- Written By:
- Bob Denny
- Creative System Design Co.
- 3452 E. Foothill Blvd. << Suite 601 >>
- Pasadena, Ca. 91107
- (213) 355-6836
-
- Modified for MSDOS By:
-
- Mike Cole
- Digital Equipment Co.
- PC Customer Information & Support Centre,
- Jays Close,
- Basingstoke,
- Hampshire RG22 4DE,
- ENGLAND. (44) 256-59200
- SYNOPSIS
-
- xrf [-options] [-o outfile] [file ...] [file...]
-
- DESCRIPTION
-
- xrf prepares a cross-reference listing for C source programs.
- It runs asis on any MSDOS V2.00 or later system.
-
- The following options are defined:
-
- -n Narrow output (80 columns). The default is 132 columns.
- -i Symbol size is 31, else truncated to 8 characters (default).
- -s Spool output to the default line printer.
- -p Print C source (with linenumbers)
- -f Process functions only, else do all symbols.
- -c Concatanate input files(s). The default is seperate reference
- listings for each file.
- -v verbose mode
-
- -o file Write output to the named file. The default is the first input
- file encountered, with a filetype (extension) of ".REF".
-
- [file] Name(s) of C programs. xrf accepts wild-card file input.
- The '.c' suffix is provided automatically.
-
-
- NOTES
-
- 1. Input files may have wild-card names.
- 2. File Specifications are stated WITHOUT AN EXTENSION.
- An INPUT extension ".C" is added automatically.
- An OUTPUT extension ".REF" is added automatically.
- 3. If the -o option is not used, an output filename is constructed
- as "<first_input_file>.xrf".
- 4. Logical names can be used for output, E.G. "-o con" will output direct
- to the console (screen).
- 5. For the spool option to work, the MSDOS "PRINT" command must have
- been used previously. EG PRINT<c/r> will just establish the
- resident print spooler.
- 6. For those of us who use later versions of Computer Innovations, XRF
- also recognises the Environment string C86TEMP as a path for any
- work files. The most common usage is a drive specifier of the memory
- drive to speed run time, eg <SET C86TEMP = F:>. The READ.ME file of
- CI86 v2.20m give a reasonable explanation.
-
- HISTORY
-
- Experimental Version X1.0 5-May-80
- Split off initialization X1.1 7-May-80
- Prototype. Y1.2 9-May-80
- Release. V1.3 9-May-80
- Chg. for DECUS OTS. & Cmplr. V1.4 1-Jul-80
- Add support for RT-11 V1.5 3-Jul-80
- Conditionalized spool call V1.6 MM 9-Jul-80
- Added narrow, outfile, etc. V1.7 MM 10-Jul-80
- Added multiple infiles V1.8 MM 22-Jul-80
- Fspool now in the library V1.9 MM 2-Aug-80
- MSDOS version V1.10MC 13-Jan-85
- Rainbow Msdos version (CI86) V1.14 MC 12-Jan-85
- . print spooling -s option
- . c,v,i options
- . identify procedure
- . Remove case sensitive printing order
- Tidy up V1.15 MC 26-Jan-85
- . fix loop on #endif
- . identify #include file
- More tidying V1.16MC 29-Mar-85
- . Fix file close problem[XRF0]
- . add -f option
- . rewrite memory allocation algorithm for Rainbow.
- Major surgery V1.17MC 4-Apr-85
- . transform tree storage to polyphase sort
- to give unlimited number of references.
- . Make -V more verbose.
- Pack workfile records to use less diskspace. V1.18MC 14-Apr-85
- Recompile version 2.20m. V2.00MC 26-Apr-85
- . Fix memory FREE pb.
- . Add C86TEMP path pickup.
-
-
- DIAGNOSTICS
-
- CAUSE: MESSAGE:
- xrf ran out of main memory space. Trying to get too much.
- Internal error, get help.
- Not enough memory space.
- Specified file not found. Cannot open "file"
- Cannot open output file "file"
- Parameter error. Useage ...
- PRINT spooler not started or queue Cannot queue nnnnnnnn.REF
- full.
-
- OUTPUT FORMAT
-
- Field
- 1 Symbol 8 chars (30 if -i option active) truncated if
- longer. Symbols appear in the case they were
- entered but in order.
- Symbol() indicates function.
- "Symbol" or <Symbol> indicates #include file.
-
- 2 Program name Only present for -c option. Matching references
- are grouped togethor but printed showing source
- file name.
-
- 3 References As many as will fit onto a 132 character print
- line (unless -n option, then 80 character line.
-
- BUGS
-
- None known (I hope).
-
- CREATING FROM SOURCES
-
- To Create DECUSC Cross Referencer using Computer Innovations C Compiler
- version 2.20m a batch file CXRF.BAT has been provided which will extract
- all files from the Archive file XRF.ARC. If you alter sources afterwards,
- you can use LXRF.BAT to relink.
-
- CXRF has two parameters: 1 = path for CIC "stdio.h" file.
- 2 = path for CIC "c86s2s.lib" file (small model only).
-
- Example of use is:- CXRF \cic\h\ \CIC\LIB\
-
- Messages you should see:-
-
- Create DECUSC Cross Referencer using Computer Innovations C Compiler
- Compiling XRF0 ....
- Compiling XRF1 ....
- Compiling XRF2 ....
- Compiling XRF3 ....
- Compiling XRFD ....
- Compiling XRFR ....
- Compiling SPOOL ...
- linking XRF .......
-
- Things that can go wrong:-
-
- 1 stdio.h path wrong <%1stdio.h>
- Compile of XRF failed. Parameter 1 wrong
-
- 2 library path wrong <%2c86s2s.lib>
- Compile of XRF failed. Parameter 2 wrong
-
- 3 Compile of XRF failed. Error in last action.
- Check source files and
- compiler version. Also
- see the .LST files.